	varying vec4 diffuse,ambient;
	varying vec3 normal, viewerVec;
	
	void main()
	{	

		normal = normalize(gl_NormalMatrix * gl_Normal);
			
		diffuse = gl_FrontMaterial.diffuse * gl_LightSource[0].diffuse;
		ambient = gl_FrontMaterial.ambient * gl_LightSource[0].ambient;
		ambient += gl_LightModel.ambient * gl_FrontMaterial.ambient;

		viewerVec = -vec3((gl_ModelViewMatrix * gl_Vertex));
	
		gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
	} 